package com.gxa.uhome.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author: Laiguowei
 * @date: 14:35 2021/6/7
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserOrder {
        @ApiModelProperty("用户订单id")
        private Integer id;

        @ApiModelProperty("订单所在的站点")
        private Integer stationId;
        private Station station;

        @ApiModelProperty("用户订单编号")
        private String userOrderNo;

        @ApiModelProperty("用户id")
        private Integer userId;

        @ApiModelProperty("地址id")
        private Integer addressId;

        @ApiModelProperty("状态0待审核，1审核成功，2审核失败")
        private Integer status;

        @ApiModelProperty("审核情况")
        private String remark;

        @ApiModelProperty("提交时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Timestamp registerTime;

        @ApiModelProperty("审核时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Timestamp reviewTime;

        @ApiModelProperty("userOrder_userName")
        private String userName;

        @ApiModelProperty("userOrder_consigneeName")
        private String consigneeName;

        @ApiModelProperty("userOrder_consigneePhone")
        private String consigneePhone;
        @ApiModelProperty("userOrder_consigneeAddress")
        private String consigneeAddress;

        private User user;
        private UserAddress userAddress;
        private List<Slip> slips;
        private List<Order> orders;
}
